﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using TrainingsApp.WebModel;

namespace TrainingsApp.IPADApp.UserControls2.Teacher {
    public partial class UC_Preview_Help : AccountControl {
        protected void Page_Load(object sender, EventArgs e) {
            var teachder = TrainingsApp.Logic.TS_User_Teacher_Logic.TS_User_Teacher_ViewAllClass(this.CurPage.CurrentUser.UserID).Select(u => new ClassEntity {
                Name = u.ClassName,
                Style = "border-left:solid 1px #aebcca;",
                
                ClassId = u.ClassesId.Value
            });
            rptClass.DataSource = teachder;
            rptClass.DataBind();
        }
    }
}